# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-scala
pkgver=0.23.2
pkgrel=0
pkgdesc="Scala grammar for tree-sitter"
url="https://github.com/tree-sitter/tree-sitter-scala"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/tree-sitter/tree-sitter-scala/archive/v$pkgver/tree-sitter-scala-$pkgver.tar.gz"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install -q queries/scala
}

sha512sums="
b9e3d3dc6c282dc058f7cc8a09467e0391b11a4cd3d4e722f3c596df46ac46ec40255e6131d322804dae129adb0c5baba83e4710f82acfb8446b7176b5e85d1a  tree-sitter-scala-0.23.2.tar.gz
"
